import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routers = [
  {
    path: '/',
    meta: {
      title: '首页'
    },
    component: resolve => require(['./views/index.vue'], resolve)
  },
  {
    path: '/mountainGhost',
    meta: {
      title: '山鬼'
    },
    component: resolve => require(['./views/mountainGhost/index.vue'], resolve)
  },
  {
    path: '/mountainGhost/reminisceThoseYears',
    meta: {
      title: '遥想那些年'
    },
    component: resolve => require(['./views/mountainGhost/reminisceThoseYears.vue'], resolve)
  },
  {
    path: '/mountainGhost/hanmo',
    meta: {
      title: '翰墨留声机'
    },
    component: resolve => require(['./views/mountainGhost/hanmo.vue'], resolve)
  },
  {
    path: '/mountainGhost/hanmo/bhw',
    meta: {
      title: '翰墨留声机白话文'
    },
    component: resolve => require(['./views/mountainGhost/hanmobhw.vue'], resolve)
  },
  {
    path: '/mountainGhost/talkAboutThat',
    meta: {
      title: '说说那些事'
    },
    component: resolve => require(['./views/mountainGhost/talkAboutThat.vue'], resolve)
  },
  {
    path: '/mountainGhost/quYuan',
    meta: {
      title: '屈原这个人'
    },
    component: resolve => require(['./views/mountainGhost/quYuan.vue'], resolve)
  },
  {
    path: '/emigrate',
    meta: {
      title: '移居'
    },
    component: resolve => require(['./views/emigrate/index.vue'], resolve)
  },
  {
    path: '/emigrate/reminisceThoseYears',
    meta: {
      title: '遥想那些年'
    },
    component: resolve => require(['./views/emigrate/reminisceThoseYears.vue'], resolve)
  },
  {
    path: '/emigrate/hanmo',
    meta: {
      title: '翰墨留声机'
    },
    component: resolve => require(['./views/emigrate/hanmo.vue'], resolve)
  },
  {
    path: '/emigrate/talkAboutThat',
    meta: {
      title: '说说那些事'
    },
    component: resolve => require(['./views/emigrate/talkAboutThat.vue'], resolve)
  },
  {
    path: '/emigrate/taoYuanMing',
    meta: {
      title: '陶渊明是谁'
    },
    component: resolve => require(['./views/emigrate/taoYuanMing.vue'], resolve)
  },
  {
    path: '/pickRose',
    meta: {
      title: '采薇'
    },
    component: resolve => require(['./views/pickRose/index.vue'], resolve)
  },
  {
    path: '/pickRose/reminisceThoseYears',
    meta: {
      title: '遥想那些年'
    },
    component: resolve => require(['./views/pickRose/reminisceThoseYears.vue'], resolve)
  },
  {
    path: '/pickRose/hanmo',
    meta: {
      title: '翰墨留声机'
    },
    component: resolve => require(['./views/pickRose/hanmo.vue'], resolve)
  },
  {
    path: '/pickRose/talkAboutThat',
    meta: {
      title: '说说那些事'
    },
    component: resolve => require(['./views/pickRose/talkAboutThat.vue'], resolve)
  },
  {
    path: '/pickRose/taoYuanMing',
    meta: {
      title: '陶渊明是谁'
    },
    component: resolve => require(['./views/pickRose/taoYuanMing.vue'], resolve)
  }
]

const RouterConfig = {
  mode: 'history',
  routes: routers
}

export default new Router(RouterConfig)
